package cn.wolfcode.mapper;

import cn.wolfcode.domain.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    //去数据库找单选题的id
    List<Long> selectByTypeId(Integer type);

    //往中间表插入关联关系
    void insertByExamId(@Param("examId") Long aLong, @Param("onlyId") Long id, @Param("onlyScore") Integer onlyScore);
}